package org.csu.small.common;

import lombok.Getter;

/**
 * @author Rambo
 * @date 2020-06-08 9:14
 */

@Getter
public enum ResponseCode {

    SUCCESS(0,"success"),
    ERROR(1,"ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2, "ILLEGAL_ARGUMENT");



    private final int code;
    private final String description;

    ResponseCode(int code, String description){
        this.code = code;
        this.description = description;
    }

}
